package cn.gson.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the CUSTOMERLOG database table.
 * 
 */
@Entity
@NamedQuery(name="Customerlog.findAll", query="SELECT c FROM Customerlog c")
public class Customerlog implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CUSTOMERLOG_CLID_GENERATOR", sequenceName="SEQ_17")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CUSTOMERLOG_CLID_GENERATOR")
	@Column(name="CL_ID")
	private long clId;

	@Column(name="CL_OPERATOR")
	private String clOperator;

	@Temporal(TemporalType.DATE)
	@Column(name="CL_TIME")
	private Date clTime;

	@Column(name="CUST_ID")
	private BigDecimal custId;

	@Column(name="CUST_NAME")
	private String custName;

	@Column(name="NEW_OPERATOR")
	private String newOperator;

	@Column(name="OLD_OPERATOR")
	private String oldOperator;

	//bi-directional many-to-one association to Contactsday
	@ManyToOne
	@JoinColumn(name="CDAY_ID")
	private Contactsday contactsday;

	public Customerlog() {
	}

	public long getClId() {
		return this.clId;
	}

	public void setClId(long clId) {
		this.clId = clId;
	}

	public String getClOperator() {
		return this.clOperator;
	}

	public void setClOperator(String clOperator) {
		this.clOperator = clOperator;
	}

	public Date getClTime() {
		return this.clTime;
	}

	public void setClTime(Date clTime) {
		this.clTime = clTime;
	}

	public BigDecimal getCustId() {
		return this.custId;
	}

	public void setCustId(BigDecimal custId) {
		this.custId = custId;
	}

	public String getCustName() {
		return this.custName;
	}

	public void setCustName(String custName) {
		this.custName = custName;
	}

	public String getNewOperator() {
		return this.newOperator;
	}

	public void setNewOperator(String newOperator) {
		this.newOperator = newOperator;
	}

	public String getOldOperator() {
		return this.oldOperator;
	}

	public void setOldOperator(String oldOperator) {
		this.oldOperator = oldOperator;
	}

	public Contactsday getContactsday() {
		return this.contactsday;
	}

	public void setContactsday(Contactsday contactsday) {
		this.contactsday = contactsday;
	}

}